---
title: "下载"
permalink: "/download/"
js:
- /scripts/download.js
---

{% assign release = site.github.releases | where: "tag_name", site.download_page_tags.release | first %}
{% if site.download_page_tags.playtest %}
  {% assign playtest = site.github.releases | where: "tag_name", site.download_page_tags.playtest | first %}
{% endif %}

<div class="download">
  <section class="site-section">
    <div class="site-section__content">
      <h1 class="site-section__heading">下载</h1>
      <p class="text--large">OpenRA是一款跨平台游戏，适用于多种操作系统。
        {% if playtest %}
        目前最新且稳定的发布版是：<code>{{ release.tag_name }}</code>，最新的测试版是：<code>{{ playtest.tag_name }}</code>
        {% else %}
        目前最新且稳定的发布版是：<code>{{ release.tag_name }}</code>
        {% endif %}
      </p>
  
      <div class="download-info">
        <div class="download-info__build">
          <h3>我应该选择哪一个版本？</h3>
          <p>OpenRA提供两个可选版本，分别是测试版（Playtest）和发布版（Release），你可以根据自己的需求自行选择。</p>
          <ul>
            <li><strong>发布版</strong>适合那些追求稳定并且有联机需求的玩家；</li>
            <li><strong>测试版</strong>则包含了一些可能不太稳定的更新或者改动，如果你想要帮助测试或者改进OpenRA，可以考虑游玩测试版。</li>
          </ul>
        </div>
        <div class="download-info__license">
          <h3>游戏素材与权属说明</h3>
          <p>OpenRA引擎是基于<a href="{{ '/legal/#license' | relative_url }}">GPL3协议</a>的免费开源软件，而OpenRA的模组必须依赖原始游戏的素材文件才能正常运行。上述素材文件的使用均遵循EA发布的命令与征服系列模组说明书（<a href="https://www.ea.com/games/command-and-conquer/command-and-conquer-remastered/modding-faq">C&C Franchise Modding Guidelines</a>）。请注意，这些文件的权属并不由OpenRA方面持有，并且你将被要求从合法的渠道下载或取得这些文件。</p>
          <p><em>EA对OpenRA不负有任何责任。</em></p>
        </div>
      </div>

    </div>
  </section>
  
  <hr class="site-section__divider" />
  
  <section id="server-browser" class="servers site-section">
    <div class="site-section__content">

      <h2 class="site-section__heading">选择你的操作系统</h2>
      <fieldset class="button-group download__os-selector">
        <label class="radio-button radio-button--icon button download__os download__os-windows">
          <svg class="button__icon icon">
            <use xlink:href="{{ '/images/icons/icons.svg#icon-windows' | relative_url }}"></use>
          </svg>
          <div>
            Windows
          </div>
          <input
            class="radio-button__input"
            name="operating-system"
            value="windows"
            type="radio" />
        </label>
        <label class="radio-button radio-button--icon button download__os download__os-macos">
          <svg class="button__icon icon">
            <use xlink:href="{{ '/images/icons/icons.svg#icon-apple' | relative_url }}"></use>
          </svg>
          <div>
            macOS
          </div>
          <input
            class="radio-button__input"
            name="operating-system"
            value="macos"
            type="radio" />
        </label>
        <label class="radio-button radio-button--icon button download__os download__os-linux">
          <svg class="button__icon icon">
            <use xlink:href="{{ '/images/icons/icons.svg#icon-linux' | relative_url }}"></use>
          </svg>
          <div>
            Linux
          </div>
          <input
            class="radio-button__input"
            name="operating-system"
            value="linux"
            type="radio" />
        </label>
        <label class="radio-button radio-button--icon button download__os download__os-free-bsd">
          <svg class="button__icon icon">
            <use xlink:href="{{ '/images/icons/icons.svg#icon-freebsd' | relative_url }}"></use>
          </svg>
          <div>
            FreeBSD
          </div>
          <input
            class="radio-button__input"
            name="operating-system"
            value="free-bsd"
            type="radio" />
        </label>
        <label class="radio-button radio-button--icon download__os-source button">
          <svg class="button__icon icon">
            <use xlink:href="{{ '/images/icons/icons.svg#icon-github' | relative_url }}"></use>
          </svg>
          <div>
            源代码
          </div>
          <input
            class="radio-button__input download__os download__os-source"
            name="operating-system"
            value="source"
            type="radio" />
        </label>
      </fieldset>

      <div class="download__instructions">
        <div id="instructions" class="instructions">
          <div id="windows-instructions" class="instruction dark-panel">
            <div class="instruction__content">
              OpenRA可在任何支持DirectX11以及OPenGL 3+的Window 7以及后续操作系统上运行
              <p class="text--centered">
                <span class="button-group">
                {% include release-download-button.html
                  release=release
                  type="windows" %}
                {% include release-download-button.html
                  release=playtest
                  type="windows"
                  playtest=true %}
                </span>
              </p>
              <p class="text--info text--small">
                {% if playtest %}
                  32-bit installers and portable releases can be downloaded from the <a href="{{ release.html_url }}">{{ release.tag_name }}</a> and <a href="{{ playtest.html_url }}">{{ playtest.tag_name }}</a> archives.
                {% else %}
                  32-bit installers and portable releases can be downloaded from the <a href="{{ release.html_url }}">{{ release.tag_name }}</a> archive.
                {% endif %}
              </p>
              <p>Stable releases are also available from <a href="https://winstall.app/apps/OpenRA.OpenRA">WinGet</a>:</p>
              <p>
                <code class="terminal"><span class="terminal__prompt">></span> winget install openra</code>
              </p>
              <p>Packages are also available from <a href="https://community.chocolatey.org/packages/openra">Chocolatey</a>:</p>
              <p>
                <code class="terminal"><span class="terminal__prompt">></span> choco install openra</code>
              </p>
              <p class="text--warning text--small">We do not maintain this external package source, so there may be delays when a new version is released. Please contact the downstream repository maintainers about any packaging issues.</p>
            </div>
          </div>
      
          <div id="macos-instructions" class="instruction dark-panel">
            <div class="instruction__content">
              OpenRA适合在<strong>macOS 10.13</strong>及后续版本的操作系统上运行
              <p class="text--centered">
                <span class="button-group">
                  {% include release-download-button.html
                    release=release
                    type="macos" %}
                  {% include release-download-button.html
                    release=playtest
                    type="macos"
                    playtest=true %}
                </span>
              </p>
              <p class="text--info text--small">
                {% if playtest %}
                  A "compat" version supporting OS X 10.9 – 10.12 can be downloaded from the <a href="{{ release.html_url }}">{{ release.tag_name }}</a> and <a href="{{ playtest.html_url }}">{{ playtest.tag_name }}</a> archives.
                {% else %}
                  A "compat" version supporting OS X 10.9 – 10.12 can be downloaded from the <a href="{{ release.html_url }}">{{ release.tag_name }}</a> archive.
                {% endif %}
              </p>
              <p>Stable releases are also available from <a href="https://formulae.brew.sh/cask/openra">Homebrew Cask</a>:</p>
              <p>
                <code class="terminal"><span class="terminal__prompt">$</span> brew install --cask openra</code>
              </p>
              <p class="text--warning text--small">We do not maintain this external package source, so there may be delays when a new version is released. Please contact the downstream repository maintainers about any packaging issues.</p>
            </div>
          </div>
      
          <div id="linux-instructions" class="instruction dark-panel">
            <div class="instruction__content">
              <h4>官方AppImages</h4>
              <p>OpenRA可以像其他应用程序一样在绝大部分当代64位Linux系统上运行</p>
              <p>你必须单独下载每一个模组，并使之可被顺利执行，随后双击即可启动游戏；你也可以安装可选的<a href="https://github.com/AppImage/appimaged/">appimaged</a>程序，从而将OpenRA与你的系统或浏览器集成在一起</p>
              <p class="text--centered">
                <span class="button-group">
                {% include release-download-button.html
                  release=release
                  type="appimage"
                  appimagename="Red-Alert"
                  text="Download Red Alert"
                  icon='/images/icons/ra_64x64.png' %}
                {% include release-download-button.html
                  release=playtest
                  type="appimage"
                  appimagename="Red-Alert-playtest"
                  text="Download Red Alert"
                  icon='/images/icons/ra_64x64.png'
                  playtest=true %}
                </span>
              </p>
              <p class="text--centered">
                <span class="button-group">
                {% include release-download-button.html
                  release=release
                  type="appimage"
                  appimagename="Tiberian-Dawn"
                  text="Download Tiberian Dawn"
                  icon='/images/icons/cnc_64x64.png' %}
                {% include release-download-button.html
                  release=playtest
                  type="appimage"
                  appimagename="Tiberian-Dawn-playtest"
                  text="Download Tiberian Dawn"
                  icon='/images/icons/cnc_64x64.png'
                  playtest=true %}
                </span>
              </p>
              <p class="text--centered">
                <span class="button-group">
                {% include release-download-button.html
                  release=release
                  type="appimage"
                  appimagename="Dune-2000"
                  text="Download Dune 2000"
                  icon='/images/icons/d2k_64x64.png' %}
                {% include release-download-button.html
                  release=playtest
                  type="appimage"
                  appimagename="Dune-2000-playtest"
                  text="Download Dune 2000"
                  icon='/images/icons/d2k_64x64.png'
                  playtest=true %}
                </span>
              </p>
              <hr />
              <h4>Community Maintained Packages</h4>
              <p>OpenRA may also be installed using packages provided by your Linux distribution or other third parties. These packages will provide better integration with your system, but may not always offer the latest release. Please contact the downstream repository maintainers about any packaging issues.</p>
              <p class="text--warning text--small">We do not maintain these external package sources, so there may be delays when a new version is released. Please contact the downstream repository maintainers about any packaging issues.</p>
              <dl class="download__community-packages">
                <dt>
                  <img class="icon" src="{{ '/images/icons/linux-mirrors/flatpak.png' | relative_url }}" alt="" />
                  Flatpak
                </dt>
                <dd>
                  <p>Stable releases and Playtests are available from <a href="https://flathub.org/apps/details/net.openra.OpenRA">Flathub</a>:</p>
                  <p>
<code class="terminal"><span class="terminal__prompt">$</span> flatpak install --from https://flathub.org/repo/appstream/net.openra.OpenRA.flatpakref
<span class="terminal__prompt">$</span> flatpak install --from https://flathub.org/beta-repo/appstream/net.openra.OpenRA.flatpakref</code>
                  </p>
                  <p class="text--info text--small">
                    The Flatpak sandbox is known to interfere with the mod switching feature between official and community mods. We recommend that players who would like to use this feature run the AppImage releases.
                  </p>
                </dd>
                
                <dt>
                  <img class="icon" src="{{ '/images/icons/linux-mirrors/snapcraft.svg' | relative_url }}" alt="" />
                  Snap
                </dt>
                <dd>
                  <p>Stable releases are available from the <a href="https://snapcraft.io/openra">Snap Store</a>:</p>
                  <p>
                    <code class="terminal"><span class="terminal__prompt">$</span> snap install openra</code>
                  </p>
                </dd>
        
                <dt>
                  <img class="icon" src="{{ '/images/icons/linux-mirrors/arch.svg' | relative_url }}" alt="" />
                  Arch Linux
                </dt>
                <dd>
                  <p>Stable releases are available in the official <a href="https://www.archlinux.org/packages/community/any/openra/">Arch repository</a>:</p>
                  <p>
                    <code class="terminal"><span class="terminal__prompt">$</span> pacman -S openra</code>
                  </p>
                </dd>

                <dt>
                  <img src="{{ '/images/icons/linux-mirrors/opensuse.svg' | relative_url }}" class="icon" />
                  openSUSE Linux
                </dt>
                <dd>
                  Stable releases and playtests are available via the <a href="http://software.opensuse.org/download.html?project=games:openra&amp;package=openra">openSUSE Build Service repository</a>.
                  <p>
                    <code class="terminal"><span class="terminal__prompt">$</span> zypper install openra</code>
                  </p>
                </dd>
        
                <dt>
                  <img class="icon" src="{{ '/images/icons/linux-mirrors/solus.svg' | relative_url }}" />
                  Solus
                </dt>
                <dd>
                  <p>Stable releases are available from the official Solus repository:</p>
                  <p>
                    <code class="terminal"><span class="terminal__prompt">$</span> eopkg it openra</code>
                  </p>
                </dd>
                
                <dt>
                  <img src="{{ '/images/icons/linux-mirrors/ubuntu.svg' | relative_url }}" class="icon" />
                  Ubuntu
                </dt>
                <dd>
                  Stable releases are available via <a href="https://xtradeb.net/play/openra/">XtraDeb</a>.
                  <p>
                    <code class="terminal"><span class="terminal__prompt">$</span> apt install openra</code>
                  </p>
                </dd>

                <dt>
                  <img class="icon" src="{{ '/images/icons/linux-mirrors/void.svg' | relative_url }}" />
                  Void Linux
                </dt>
                <dd>
                  <p>Stable releases are available from the official <a href="https://github.com/void-linux/void-packages/tree/master/srcpkgs/openra">Void Linux repository</a>:</p>
                  <p>
                    <code class="terminal"><span class="terminal__prompt">$</span> xbps-install openra</code>
                  </p>
                </dd>
              </dl>
            </div>
          </div>
      
          <div id="free-bsd-instructions" class="instruction dark-panel">
            <div class="instruction__content">
              玩家可以在<a href="https://www.freshports.org/games/openra/">FreeBSD Ports Collection</a>获取最新的稳定版资源
              <p>
<code class="terminal"><span class="terminal__prompt">#</span> cd /usr/ports/games/openra
<span class="terminal__prompt">#</span> make install</code>
              </p>
              <p class="text--warning text--small">请注意，OpenRA官方不负责此类社群平台的维护工作；在新版本发布后，此类下游平台可能会出现一些发布延迟
              </p>
            </div>
          </div>
      
          <div id="source-instructions" class="instruction dark-panel">
            <div class="instruction__content">
              你可以下载OpenRA源代码并在任何平台上进行编译
              <p class="text--centered">
                <span class="button-group">
                {% include release-download-button.html
                  release=release
                  type="source"
                  tag=release.tag_name %}
                {% include release-download-button.html
                  release=playtest
                  type="source"
                  tag=playtest.tag_name
                  playtest=true %}
                </button>
              </p>
              <p class="text--info text--small">
              {% if playtest %}
                Compilation instructions are available for <a href="https://github.com/OpenRA/OpenRA/blob/{{ release.tag_name }}/INSTALL.md">{{ release.tag_name }}</a> and <a href="https://github.com/OpenRA/OpenRA/blob/{{ playtest.tag_name }}/INSTALL.md">{{ playtest.tag_name }}</a>.
              {% else %}
                Compilation instructions are available for <a href="https://github.com/OpenRA/OpenRA/blob/{{ release.tag_name }}/INSTALL.md">{{ release.tag_name }}</a>.
              {% endif %}
              </p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
</div>